//
//  CTopBar.h
//  CWeekly
//
//  Created by  on 12-4-12.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CTopBar;
@protocol CTopBarDelegate<NSObject>
-(void)topBar:(CTopBar*)topbar DidSelectButton:(UIButton*)btnSelected AtIndex:(NSInteger)index;
@end
@interface CTopBar : UIToolbar{
    NSMutableArray* barItems;
    UILabel* titleLabel;
    id<CTopBarDelegate> delegate;
    UIBarButtonItem* helpItem;
    UIBarButtonItem* searchItem;
    UIBarButtonItem* loginItem;
}
@property(nonatomic, retain)UIBarButtonItem* helpItem,*searchItem,*loginItem;
@property(nonatomic,retain)UILabel* titleLabel;
@property(nonatomic,assign)id<CTopBarDelegate> delegate;
@end
